package com.small.nacos.common.utils;

/**
 * @Author zhoujin
 * @Date 2022/11/7 14:02
 */
public class Objects {

    public static <T> T requireNonNull(T obj, String message) {
        if (obj == null) {
            throw new NullPointerException(message);
        }
        return obj;
    }
}
